﻿package cn.valorin.util;

import org.bukkit.entity.Player;
import static cn.valorin.configuration.languagefile.MessageSender.sm;

public class EatingTell {
  public static void tellMessage(Player p,String log_string)
  {
	log_string = log_string.replace("&", "§").replace("<player>", p.getName());
	String message = "";
	try { message = log_string.split("\\:")[1]; } catch (Exception e) {
    sm("&c执行tell动作时发生错误，请截图给腐竹让腐竹检查插件的配置文件中Action项的格式是否有误",p); return;}
	p.sendMessage(message);
  }
}
